package cn.itsource.org.service;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {
    //添加
    void add(Department department);
    //修改
    void update(Department department);
    //删除
    void  delete(Long id);
    //查询一个
    Department fendById(Long id);
    //查询所有
    List<Department> findAll();
    //分页条数
    PageList<Department> queryByPage(DepartmentQuery departmentQuery);

}
